#ifndef _BATTERY_DRV_H_
#define _BATTERY_DRV_H_

#include <stdint.h>

typedef enum
{
	BATTERY_IS_CHARGING,
	BATTERY_CHARGE_FULL,
	BATTERY_NOT_CHARGE,
} BatteryState_t;

typedef enum
{
	BATTERY_LEVEL_GRID_0,
	BATTERY_LEVEL_GRID_1,
	BATTERY_LEVEL_GRID_2,
	BATTERY_LEVEL_GRID_3,
	BATTERY_LEVEL_GRID_4,
	OTHERLEVEL
} BatteryLevel_t;

void BatteryHwDrvInit(void);
uint16_t GetBatteryVolt(void);
BatteryState_t GetBatteryState(void);
BatteryLevel_t GetBatteryLevel(void);
void BatteryDrvTaskInit(void);
void BatteryDrvTest(void);

#endif

